#include "StdAfx.h"
#include "AutoJoin.h"

CAutoJoinPlugin::CAutoJoinPlugin()
{	
}

CAutoJoinPlugin::~CAutoJoinPlugin(void)
{
	dlgPlugin->DestroyWindow();
	delete dlgPlugin;
}

LRESULT CAutoJoinPlugin::Initialize(IMainDlg* dlgMain, CWnd* pParent, ISetting* setting, ILang* lang) {
	// Initialize Main Dialog
	//this->setting = setting;
	//this->lang = lang;	
	dlgPlugin = new CAutoJoinDlg(dlgMain, pParent, setting, lang);
	dlgPlugin->Create(IDD_AUTOJOIN, pParent);	

	return S_OK;
}

void CAutoJoinPlugin::GetName(CString *sName) {
	*sName  = L"Auto-Join";
}

int CAutoJoinPlugin::GetOrder() {
	return 100;
}

CDialog* CAutoJoinPlugin::GetDialog() {
	return dlgPlugin;
}
